package com.lbb.http.provider

import com.lbb.http.call.CallBack
import com.lbb.http.interceptor.ResultInterceptor

interface Provider {
    fun get(url: String, map: Map<String, String>? = null, callback: CallBack<String>? = null)
    fun postForm(url: String, map: Map<String, String>? = null, callback: CallBack<String>? = null)
    fun postJson(url: String, map: Map<String, String>? = null, callback: CallBack<String>? = null)
    fun addHeader(key: String, value: String)
    fun setHeader(map: Map<String, String>)
    fun clearHeader()
    fun setInterceptor(resultInterceptor: ResultInterceptor)
}